package boardService

import (
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/suite"
	"notabug.org/ropemann/imabon/src/entities/board"
)

type BoardServiceTestSuite struct {
	suite.Suite
}

func (s *BoardServiceTestSuite) SetupSuite() {
	GetAllBoardsFunc = func() ([]board.Board, error) {
		return []board.Board{}, nil
	}
}

func (s *BoardServiceTestSuite) TestGetAllBoards() {
	boards := GetAllBoards()
	assert.Empty(s.T(), boards)
}

func TestBoardServiceTestSuite(t *testing.T) {
	suite.Run(t, new(BoardServiceTestSuite))
}
